package com.service;

import org.springframework.data.domain.Page;

import com.dao.entity.Commissioner;

public interface ICommissionerService {
	
	/**
	 * 登录
	 * @param username
	 * @param password
	 * @return
	 */
	public Commissioner login(String username, String password);
	
	/**
	 * 添加用户
	 * @param username
	 * @param password
	 * @param role
	 * @return
	 */
	public Commissioner addAdmin();
	/**
	 * 保存或者更新用户
	 * @param username
	 * @param password
	 * @param role
	 * @return
	 */
	public Commissioner saveUser(Commissioner user);
	
	/**
	 * 查找管理员
	 * @author geliyang
	 * @return
	 */
	public Commissioner findAdmin();
	
	/**
	 * 查询用户
	 * @author zouyi
	 * @param name
	 * @param page
	 * @param size
	 * @return
	 */
	public Page<Commissioner> findUserByCondition(Commissioner name, Integer page, Integer size, String orderBy);
	/**
	 * 查询用户
	 * @author geliyang
	 * @param name
	 * @param page
	 * @param size
	 * @return
	 */
	public Commissioner findUserById(Long id);

	public void deleteUser(Long id);

	public Commissioner findCommis(Commissioner commis);

	public void approvalCommis(Long id);

}
